package fr.esiag.isidis.fi.pdsTeam.events;

import java.io.Serializable;

public class RawEvent implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int waitTime;
	private String sensorMacAddress;
	private int eventCode;
	private String receptionTime;
	
	public RawEvent() {
		waitTime = -1;
		sensorMacAddress = "unknow";
		eventCode = 0;
	}

	public RawEvent(int waitTime, String sensorMacAddress, int eventCode) {
		super();
		this.waitTime = waitTime;
		this.sensorMacAddress = sensorMacAddress;
		this.eventCode = eventCode;
	}
	
	public RawEvent(RawEvent event) {
		super();
		this.waitTime = event.getWaitTime();
		this.sensorMacAddress = event.getSensorMacAddress();
		this.eventCode = event.getEventCode();
		this.receptionTime = event.getReceptionTime();
	}
	
	public RawEvent(int waitTime, String sensorMacAddress, int eventCode,String receptionTime) {
		super();
		this.waitTime = waitTime;
		this.sensorMacAddress = sensorMacAddress;
		this.eventCode = eventCode;
		this.receptionTime = receptionTime;
	}

	public int getWaitTime() {
		return waitTime;
	}

	public void setWaitTime(int waitTime) {
		this.waitTime = waitTime;
	}

	public String getSensorMacAddress() {
		return sensorMacAddress;
	}

	public void setSensorMacAddress(String sensorMacAddress) {
		this.sensorMacAddress = sensorMacAddress;
	}

	public int getEventCode() {
		return eventCode;
	}

	public void setEventCode(int eventCode) {
		this.eventCode = eventCode;
	}
	
	public String getReceptionTime() {
		return receptionTime;
	}

	public void setReceptionTime(String receptionTime) {
		this.receptionTime = receptionTime;
	}

	@Override
	public String toString() {
		return "[SensorMacAddress: "+sensorMacAddress+" EventCode: "+eventCode+"ReceptionTime:"+receptionTime+"]";
	}
}
